package com.cidp.system.common;

import javax.servlet.http.HttpServletRequest;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.struts.actions.DispatchAction;

import com.cidp.system.pojo.LoginPo;



/**
 * 
 * <B>TITLE:</B>Action基类.
 * 继承于DispatchAction，固Action实现子类必须采用DispatchAction方式
 * 
 * @author <a href="mailto:littcai@hotmail.com">蔡源</a>
 * @since 2007-12-14
 * @version 1.0
 *
 */
public class BaseAction extends DispatchAction 
{	
	protected final Log log = LogFactory.getLog(getClass());
	
	/**
	 * 从请求的SESSION中获取登陆操作员的信息
	 * @return LoginPo登陆操作员对象
	 */
	protected LoginPo getLoginPo(HttpServletRequest request)
	{
		LoginPo loginPo = (LoginPo)request.getSession().getAttribute(Constants.SESSION_OPER);
		return loginPo;
	}

}
